﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DFGK_WMS.Model.DTO
{
    /// <summary>
    /// 出库单详情
    /// </summary>
    public class GroupShippingOrderDto
    {


        /// <summary>
        /// 出库单类型 0:上级调拨  1:本级自筹
        /// </summary>
        public int? BillType { get; set; }

        /// <summary>
        /// 出库单号
        /// </summary>
        public string OrderSn { get; set; }

        /// <summary>
        /// 关联单号
        /// </summary>
        public string RelevanceOrderSn { get; set; }

        /// <summary>
        /// 经办人
        /// </summary>
        public string Agent { get; set; }

        /// <summary>
        /// 供应单位Id
        /// </summary>
        public int SupplierId { get; set; }

        /// <summary>
        /// 供应单位编号
        /// </summary>
        public string SupplierCode { get; set; }

        /// <summary>
        /// 供应单位名称
        /// </summary>
        public string SupplierName { get; set; }

        /// <summary>
        /// 供应单位联系人
        /// </summary>
        public string Contact { get; set; }

        /// <summary>
        /// 供应单位联系方式
        /// </summary>
        public string ContactMobile { get; set; }

        /// <summary>
        /// 制单时间
        /// </summary>
        public DateTime? ProductDate { get; set; }

        /// <summary>
        /// 出库凭证
        /// </summary>
        public string ShippingVoucher { get; set; }

        /// <summary>
        /// 明细字段
        /// </summary>
        public List<ChildShippingOrder> childShippingOrders { get; set; } = new List<ChildShippingOrder>();

    }

    public class ChildShippingOrder
    {
        /// <summary>
        /// 装备Id
        /// </summary>
        public int? MakerialCategoryId { get; set; }

        /// <summary>
        /// 器材Id
        /// </summary>
        public int MaterialId { get; set; }

        public string MaterialName { get; set; }

        /// <summary>
        /// 器材编码
        /// </summary>
        public string MaterialCode { get; set; }

        /// <summary>
        /// 型号规格
        /// </summary>
        public string ModelSpec { get; set; }

        /// <summary>
        /// 质量等级
        /// </summary>
        public int QualityState { get; set; }

        /// <summary>
        /// 计量单位
        /// </summary>
        public string Measurement { get; set; }

        /// <summary>
        /// 存放位置
        /// </summary>
        public string Position { get; set; }

        /// <summary>
        /// 单价
        /// </summary>
        public decimal? Price { get; set; }

        /// <summary>
        /// 总价
        /// </summary>
        public decimal? TotalPrice { get; set; }

        /// <summary>
        /// 出库数量
        /// </summary>
        public decimal? Qty { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }
    }

}
